<style>
#load{
    width:100%;
    height:100%;
    position:fixed;
    z-index:9999;
    background:url("images/loading_bar.gif") no-repeat center center #fff;
}
</style>
<script>
document.onreadystatechange = function () {
	var path = window.location.href;
    path = path.replace(/\/$/, "");
    path = decodeURIComponent(path);
	var pageUrl		=	path;
	sessionStorage.setItem( 'pageUrl', JSON.stringify(pageUrl) );
	
	
  var state = document.readyState
  if (state == 'interactive') {
       document.getElementById('contents').style.visibility="hidden";
  } else if (state == 'complete') {
      setTimeout(function(){
	   if(typeof sessionStorage["admin_user_id"]!='undefined'){
			document.getElementById('interactive');
			document.getElementById('load').style.visibility="hidden";
			document.getElementById('contents').style.visibility="visible";
		 }else{
			window.location="index.html";
		 }
      },400);
  }
}
</script>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.pagination.js"></script> 
<script src="js/webserviceurl.js"></script>
<script src="js/alert.js"></script>
<script src="js/modal.js"></script>
<script src="js/validations.js"></script>
<script src="js/pagination.js"></script>
<script src="http://getbootstrap.com/2.3.2/assets/js/bootstrap-carousel.js"></script>
<script src="js/commonfunctions.js"></script>
<script src="js/text.js"></script>
<link rel="stylesheet" href="css/pagination.css" />
<link href="css/style.css" rel="stylesheet">
<link href="css/default.css" rel="stylesheet">
<link href="css/responsive.css" rel="stylesheet">
<script>
$(window).load(function() {
$('#sidemenu').load('side-menu.html');
$('#header').load('header.html');
$('#footer').load('footer.html');
//orderTable(0);
var newordervalue=0;
paginationTable(webServiceUrl+'admin-allorders/'+newordervalue,'AdminNeworders');
});
</script>
<div id="load"></div>
<div id="contents">
  <div id="header"></div>
    <div class="container-fluid">
      <div class="row-fluid container_bg">
        <div id="sidemenu"></div>
        <div class="span9 pos_r" style="padding-right:20px;">
			<div class="container_title">
				<div class=""><h1>Order History</h1></div>
				<div  id="success_alert" class="alert_sucess alert alert-success span11" style="display:none;">
					<i class="icon-ok"></i>&nbsp;&nbsp;
					<span  id="cancelled_order"></span>
				</div>
				<div class="container_form_top table-responsive" id="orderHistory">
				</div>
				
				<div class="container_form_top table-responsive" id="viewDetailes_id">
				
				</div>
				<div class="container_form_top table-responsive" id="viewall_detailes">
				
				</div>
				<div class="container_form_top table-responsive" id="viewall_Imags">
				
				</div>
				<div class="container_form_top table-responsive" id="send_quotation_popup">
				
				</div>
				<div id="Pagination" class="pagination">
				</div>
				<div id="errornodata_message">
				</div>
			</div>
          
        </div><!--/span-->
      </div><!--/row-->
    </div><!--/.fluid-container-->
	
<div id="footer"></div>
</div>
<script>
function discountSelect(num){
	if(num==1){
		$('#PriceRadio').show();
	}else{
		$('#PriceRadio').hide();
	}
	$('#hidDiscountValue').val(num);
}

   /* $('#allCheck').click(function(event) { alert();
        if(this.checked) { 
            $('.Check1').each(function() {
                this.checked = true;            
            });
        }else{
            $('.Check1').each(function() {
                this.checked = false;                     
            });        
        }
    });
	$('.Check1').click(function(event) { 
        if(this.checked==false) { 
            $('#allCheck').each(function() {
                this.checked = false;            
            });
        }
    });*/
   
function uncheckSelectAll(){
	var flag=true;
	var checkboxes=document.getElementsByTagName("INPUT");	
	var len=checkboxes.length;	
	var cnt = 0;
	for(var i=0;i<len;i++)
	{		
		if(checkboxes[i].name=="Check[]")
		{		
			if(checkboxes[i].checked==false)
			{
				$('#allCheck').prop('checked',false); 
				flag=false;
			}
		}
	}
	if(flag==true){
		$('#allCheck').prop('checked',true); 
	}
}
function selectAllCheck(){
	if($('#allCheck').prop('checked')) { 
		$('.Check1').prop('checked',true);
	}else{
		$('.Check1').prop('checked',false);                     
	}
}
</script>
